/**
 * 
 */
package model;

import model.Date;

/**
 * @author yuqi
 *
 */
public class Book {
	private int id;
	private String username;
	private double sum;
	private Date bookTime;
	private Date sendTime;
	private int isSend;
	
	/**
	 * use to do select
	 * @param id
	 * @param menber_id
	 * @param sum
	 * @param bookTime
	 * @param sendTime
	 * @param isSend
	 */
	public Book(int id, String username , double sum,
			Date bookTime , Date sendTime , int isSend){
		this.id =  id;
		this.username =  username;
		this.sum = sum;
		this.bookTime = bookTime;
		this.sendTime = sendTime;
		this.isSend = isSend;
	}
	
	/**
	 * use to do insert
	 * @param menber_id
	 * @param sum
	 * @param bookTime
	 * @param sendTime
	 * @param isSend
	 */
	public Book(String username , double sum,
			Date bookTime , Date sendTime){
		this.username =  username;
		this.sum = sum;
		this.bookTime = bookTime;
		this.sendTime = sendTime;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the menber_username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the sum
	 */
	public double getSum() {
		return sum;
	}

	/**
	 * @param sum the sum to set
	 */
	public void setSum(double sum) {
		this.sum = sum;
	}

	/**
	 * @return the bookTime
	 */
	public Date getBookTime() {
		return bookTime;
	}

	/**
	 * @param bookTime the bookTime to set
	 */
	public void setBookTime(Date bookTime) {
		this.bookTime = bookTime;
	}

	/**
	 * @return the sendTime
	 */
	public Date getSendTime() {
		return sendTime;
	}

	/**
	 * @param sendTime the sendTime to set
	 */
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	/**
	 * @return the isSend
	 */
	public int getIsSend() {
		return isSend;
	}

	/**
	 * @param isSend the isSend to set
	 */
	public void setIsSend(int isSend) {
		this.isSend = isSend;
	}
	

	
	

}
